package com.uyayo.system.config.service;

import com.uyayo.framework.common.exception.CodeMultipleException;
import com.uyayo.framework.pagehelper.pojo.PageBean;
import com.uyayo.system.config.entity.SysServer;
import com.uyayo.system.config.model.SysServerCondition;

import java.util.List;

public interface SysServerService {

	SysServer getSysServerById(long id);

	PageBean<SysServer> selectSysServer(Integer page, Integer rows, String sort, String order, SysServerCondition sysServerCondition);
	
	List<SysServer> selectSysServer(SysServer sysServer);
	
	int saveSysServer(SysServer sysServer) throws CodeMultipleException;

	int updateSysServer(SysServer sysServer) throws CodeMultipleException;

	int deleteSysServerById(Long id);

	SysServer getSysServerByCode(String code);

	SysServer getSysServerByEnabled();
}
